package org.rency.common.redis;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class RedisNodeDomain {

	private String nodeAddr;
	
	private int nodePort;
	
	private int nodeWeight;
	
	public RedisNodeDomain(){}
	
	public RedisNodeDomain(String nodeAddr,int nodePort,int nodeWeight){
		this.nodeAddr = nodeAddr;
		this.nodePort = nodePort;
		this.nodeWeight = nodeWeight;
	}

	public String getNodeAddr() {
		return nodeAddr;
	}

	public void setNodeAddr(String nodeAddr) {
		this.nodeAddr = nodeAddr;
	}

	public int getNodePort() {
		return nodePort;
	}

	public void setNodePort(int nodePort) {
		this.nodePort = nodePort;
	}

	public int getNodeWeight() {
		return nodeWeight;
	}

	public void setNodeWeight(int nodeWeight) {
		this.nodeWeight = nodeWeight;
	}
	
	@Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
	
}